class FriendObserver < ActiveRecord::Observer

  def after_create(friend)
    FriendNotifier.deliver_signup_notification(friend)
    friend.dneirfships.each {|f| f.add_hint(:show); f.save}
  end

  def after_save(friend)
    FriendNotifier.deliver_activation(friend) if friend.recently_activated?
    friend.dneirfships.each {|f| f.add_hint(:show); f.save}
  end

end